  /**
    *  Hub Funktionen
    *
    *  @return true if Hub; false if Function
    */

package USB_Helper;
// Device.java

/**
 *
 * @author admin
 */
public abstract class Device
{


    /**
     *
     */
    public String manufacturer;


    /**
     *
     */
    public String product;



    /**
     *
     */
    public String serialNumber;

 

    /**
     *
     * @return
     * Fertigstelen
     */
    public boolean isHub ()
   {
      return (this instanceof Hub) ? true : false;
   }

   /**
    *  @return string representation
    */

   public String toString ()
   {
      return isHub () ? "Hub" : "Function";
   }
}
